package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 投喂记录对象 record_info
 * 
 * @author fxk
 * @date 2023-06-20
 */
public class RecordInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录编号 */
    @Excel(name = "记录编号")
    private Long recordId;

    /** 饲料用量 */
    @Excel(name = "饲料用量")
    private BigDecimal consumption;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    /** 鱼种编号 */
    @Excel(name = "鱼种编号")
    private Long fishId;

    /** 饲料编号 */
    @Excel(name = "饲料编号")
    private Long feedId;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setConsumption(BigDecimal consumption) 
    {
        this.consumption = consumption;
    }

    public BigDecimal getConsumption() 
    {
        return consumption;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }
    public void setFishId(Long fishId) 
    {
        this.fishId = fishId;
    }

    public Long getFishId() 
    {
        return fishId;
    }
    public void setFeedId(Long feedId) 
    {
        this.feedId = feedId;
    }

    public Long getFeedId() 
    {
        return feedId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("consumption", getConsumption())
            .append("recordTime", getRecordTime())
            .append("fishId", getFishId())
            .append("feedId", getFeedId())
            .toString();
    }
}
